package com.crois.barrier.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhimydou.zdf.wf.domain.AbstractBizEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * barrier ip 黑白 名单 表
 *
 * @author Hou Ze Yu
 * @version 1.0
 * @date 2021-10-25 11:58:28
 **/
@TableName("t_ip_black_white_list")
@Getter
@Setter
@ToString
public class IpBlackWhiteList extends AbstractBizEntity<Integer,Long> {


   /**
    *  
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

   /**
    *  类型 1、允许 2、禁止
    */
    @TableField("type")
    private Integer type;

    /**
     *  描述
     */
    @TableField("description")
    private String description;

    /**
    * ip集合
    */
    @TableField("ips")
    private String ips;

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }
}